public class Fire {
    private int x;
    private int y;
    private int tx;
    private int ty;

    public int getTx() {
        return tx;
    }

    public void setTx(int tx) {
        this.tx = tx;
    }

    public int getTy() {
        return ty;
    }

    public void setTy(int ty) {
        this.ty = ty;
    }

    private int dir=0;

    public int getDir() {
        return dir;
    }

    public void setDir(int dir) {
        this.dir = dir;
    }

    private int time=60;

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    private boolean isLife=true;
    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }
    public void setY(int y) {
        this.y = y;
    }
    public Fire(int x,int y,int tx,int ty){
        this.x=x;
        this.y=y;
        this.tx=tx;
        this.ty=ty;
    }
    public void pop(){
        if(time>0){
            time--;
        }
        else isLife=false;
    }
}
